//处理文章图片路径问题
export function articlePhotoUrl(photoUrl) {
  if (photoUrl && photoUrl.substr(0, 1) == '~') {
    return photoUrl.substr(1);
  }
  return photoUrl;
}

export function articleDetailsViewUrl(articleId) {
  return '/news/details/' + articleId
}